package DataAccess;

/** 
 Data Access Layer Object Collection Of hy_login_info
*/
public class hy_login_infoCollection extends DataAccessCollectionBase
{
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#region ����ͻ���
	public hy_login_infoCollection()
	{
		super();
	}
	@Override
	protected DataTable BuildTable()
	{
		DataTable dt = new DataTable();
		dt.Columns.Add("Hy_Id",Integer.class);
		dt.Columns.Add("Hy_Login_Name",String.class);
		dt.Columns.Add("Hy_Pwd",String.class);
		dt.Columns.Add("Hy_Zt",String.class);
		dt.Columns.Add("Hy_Num",Integer.class);
		dt.Columns.Add("Hy_Type",String.class);
		dt.Columns.Add("Hy_Email",String.class);
		dt.Columns.Add("Hy_Pwd_Question",String.class);
		dt.Columns.Add("Hy_Pwd_Answer",String.class);
		dt.Columns.Add("Hy_Group",String.class);
		dt.Columns.Add("Hy_Role",String.class);
		dt.Columns.Add("Hy_Login_Ip",String.class);
		dt.Columns.Add("Hy_Login_Time",java.time.LocalDateTime.class);
		dt.Columns.Add("Hy_Regisret_Time",java.time.LocalDateTime.class);
		dt.Columns.Add("Hy_Dail_id",String.class);
		dt.Columns.Add("tichengbili",String.class);
		return dt;
	}
	@Override
	protected DataAccessBase GetItemByIndex(int index)
	{
		return new hy_login_info(_DataTable.Rows[index]);
	}
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#endregion ����ͻ���
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#region ����
	public final DataTable getTable()
	{
		return super._DataTable;
	}
	public final hy_login_info getItem(int index)
	{
		return new hy_login_info(_DataTable.Rows[index]);
	}
	public final void setItem(int index, hy_login_info value)
	{
		_DataTable.Rows.RemoveAt(index);
		_DataTable.Rows.InsertAt(value.getDataRow(),index);
	}
	public enum Field
	{
		Hy_Id,
		Hy_Login_Name,
		Hy_Pwd,
		Hy_Zt,
		Hy_Num,
		Hy_Type,
		Hy_Email,
		Hy_Pwd_Question,
		Hy_Pwd_Answer,
		Hy_Group,
		Hy_Role,
		Hy_Login_Ip,
		Hy_Login_Time,
		Hy_Regisret_Time,
		Hy_Dail_id,
		tichengbili;

		public int getValue()
		{
			return this.ordinal();
		}

		public static Field forValue(int value)
		{
			return values()[value];
		}
	}
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#endregion ����
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#region ��������
	protected final boolean ListByCondition(String condition)
	{
		String sql = "" + "\r\n" +
"				Select" + "\r\n" +
"					Hy_Id," + "\r\n" +
"					Hy_Login_Name," + "\r\n" +
"					Hy_Pwd," + "\r\n" +
"					Hy_Zt," + "\r\n" +
"					Hy_Num," + "\r\n" +
"					Hy_Type," + "\r\n" +
"					Hy_Email," + "\r\n" +
"					Hy_Pwd_Question," + "\r\n" +
"					Hy_Pwd_Answer," + "\r\n" +
"					Hy_Group," + "\r\n" +
"					Hy_Role," + "\r\n" +
"					Hy_Login_Ip," + "\r\n" +
"					Hy_Login_Time," + "\r\n" +
"					Hy_Regisret_Time," + "\r\n" +
"					Hy_Dail_id," + "\r\n" +
"					tichengbili" + "\r\n" +
"				  From hy_login_info" + "\r\n" +
"				 Where " + condition + "\r\n" +
"			";
		return super.ListBySql(sql);
	}

	public final boolean ListAll()
	{
		String condition = "1=1";
		return ListByCondition(condition);
	}
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#endregion ��������
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#region ���淽��
	public final boolean ListByDaierIsME(int HYHum)
	{
		String condition = "1=1 and Hy_Dail_id =" + HYHum;
		return ListByCondition(condition);
	}
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#endregion ���淽��
}